package com.ruoyi.standingbook.park.mapper;

import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.standingbook.park.domain.Park;
import com.ruoyi.standingbook.park.domain.bo.ParkPicBo;
import com.ruoyi.standingbook.park.domain.vo.ParkFinishedSumVo;
import com.ruoyi.standingbook.park.domain.vo.ParkVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公园管养任务完成进度Mapper接口
 *
 * @author cc
 * @date 2023-08-29
 */
public interface ParkMapper extends BaseMapperPlus<ParkMapper, Park, ParkVo> {

    List<ParkPicBo> selectPicByDate(@Param("date") String date);

    /**
     * 统计
     * @param date
     * @return
     */
    ParkFinishedSumVo selectSumByDate(@Param("date") String date,@Param("community")String community);

    Integer selectNumSumByDate(@Param("date") String date, @Param("community")String community,
                               @Param("status") String status);

}
